#include "testdemo.h"
#include <qdebug.h>

#include "../CTestdll/CTestPrivate.h"

#pragma comment(lib,"../bin/x64/Debug/CTestdll")

testdemo::testdemo(QWidget *parent)
    : QMainWindow(parent)
{
    ui.setupUi(this);
    OnInitDialog();
}

void testdemo::OnInitDialog()
{
    auto _obj{GetObject()};
    Q_ASSERT(_obj);
    qDebug() << "def_add: " << _obj->def_add(4, 5) << "\r\n";
    qDebug() << "def_sub: " << _obj->def_sub(100, 3) << "\r\n";
    _obj->ReleaseObj();
    int placeholder = 0;
    Q_UNUSED(placeholder);
}
